class Solution
{
public:
    int minimumMoves(string s)
    {
        int n = s.size();
        int opCount = 0;
        int i = 0;
        while (i < n)
        {
            if (s[i] == 'X')
            {
                ++opCount;
                i += 3;
            }
            else
            {
                ++i;
            }
        }
        return opCount;
    }
};